﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"  schema="dbo"
                   assembly="OpenSda.Agilcont.Common.Data.Entities"
                   namespace="OpenSda.Agilcont.Common.Data.Entities"
                   default-lazy="false" default-cascade="none">
  <class name="TipoCambio" table="common_Tipo_Cambio">
    <id name="Identity" column="TipoCambioId"  type="guid">
      <generator class="guid.comb"/>
    </id>

    <property name="Fecha" column="Fecha" type="DateTime" />
    <property name="Compra" column="Compra" type="double"  />
    <property name="Venta" column="Venta" type="double" />

    <many-to-one name="EmpresaRef" column="EmpresaId" class="OpenSda.Agilcont.Common.Data.Entities.Agencia, OpenSda.Agilcont.Common.Data.Entities" not-null="true" />

  </class>
</hibernate-mapping>